package com.xgc.book.bookserver.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xgc.book.bookserver.bean.TokenBean;
import com.xgc.book.bookserver.util.ResultJson;

/**
 * <p>
 * 登录状态表 服务类
 * </p>
 *
 * @author wrz
 * @since 2023-11-20
 */
public interface TokenService extends IService<TokenBean> {
    TokenBean getByToken(String token);

    TokenBean getByUserId(int userId);

    ResultJson saveToken(int userId);
}
